import {
    getCompanyPayAccount
} from '../../../api/pay.js'
import user from '../../../../utils/user'
Page({
    data: {
        bankCard: '',
        companyName: ""
    },
    onLoad() {
        console.log(user.companyName);
        this.setData({
            companyName: user.companyName
        })
        this.getCompanyPayAccount()
    },
    getCompanyPayAccount() {
        getCompanyPayAccount().then(res => {
            this.setData({
                bankCard: res.merchantBankCard
            })
        })
    },
    copy() {
        wx.setClipboardData({
            data: this.data.bankCard
        })
    }
})